﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace crm_library.DataAccess.ObjectReps
{
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
	public class ListingFieldAttribute : Attribute
	{
		public string DisplayText { get; private set; }

		/// <summary>
		/// Flags a Property as existing in the database. Flagged properties must have public setters.
		/// </summary>
		/// <param name="fieldName">Name of column in the database table</param>
		/// <param name="allowNulls">Does the column allow null values?</param>
		/// <param name="isPK">Is the column a Primary key on the database?</param>
		public ListingFieldAttribute(string displayText)
		{
			DisplayText = displayText;
		}

	}
}
